<?php$nominal=500000;$banyak=10;$persen=0.05;$total=0;//$tot_harus=0;for($i=1;$i<=$banyak;$i++){	if($i>3){		echo ' loop '.$i.' ke '.$total.' tot ';		$denda=$persen*$total;		echo $denda.' harus ';		$harus=$denda+$nominal;		//$tot_harus+=$harus;		echo number_format($harus,0,",",".");			}else{		$harus=$nominal;	}	$total+=$harus;	echo ' total bayar '.number_format($total,0,",",".");	echo '<br>';}?>